package com.example.user.model

import com.example.net.BaseResponse
import com.example.net.RetrofitFactory
import com.example.user.api.UserApiService
import com.example.user.entity.UserEntity

class UserModel {
    private val api:UserApiService=RetrofitFactory.getRetrofitFactory().create(UserApiService::class.java)
    suspend fun register(pas:String,user:String):BaseResponse<UserEntity>{
        return api.register(pas,user)
    }
    suspend fun login(pas:String,user:String):BaseResponse<UserEntity>{
        return api.login(pas,user)
    }

}